<a href="/station/station_calendar">Back</a>
<br/>
<h3>รอบ > <%=@station.name%> > <%="#{@book_date.day}/#{@book_date.month}/#{@book_date.year}"%></h3>
<table width="100%" class="index">
  <tr align="center">
    <th>เวลา</th>
    <th>Code</th>
    <th>สถานะ</th>
    <th>ผู้จอง</th>
    <th></th>
  </tr>
  <%@slots.each do |s|%>
  <tr align="center">
    <td><%=s.start_time.strftime("%H:%M")%>-<%=s.end_time.strftime("%H:%M")%></td>
    <td><%=s.serial%></td>
    <td><%=s.s_status%></td>
    <td><%if s.user_id%><%u=User.find(s.user_id)%><%if u%><a href="/users/show_detail/<%=u.id%>" target="_blank"><%=u.full_name%></a><%end%><%end%></td>
    <td><%if s.s_status=='Free'%><a href="/station/delete_slot/<%=s.id%>?date=<%=@book_date%>" onclick="return confirm('Are you sure?');">Delete</a><%end%></td>
  </tr>
  <%end%>
</table>